<?php

use Illuminate\Database\Seeder;
use App\Models\Filiale;

class FilialesTableSeeder extends Seeder
{
    public function run()
    {
        $filiales = factory(Filiale::class)
                        ->times(100)
                        ->make();


        // 将数据集合转换为数组，并插入到数据库中

        Filiale::insert($filiales->toArray());
    }

}

